The CtlHTML Supported HTML Tags

The CtlHTML Control Library supports the following tags and attributes. Unlike standard HTML, all tags require an end tag. The HTML tag attributes that require the Pro version of the CtlHTML Control Library are so marked.

<HTML>

Usage: Indicates that the control text contains HTML tagging.
Attributes:
(all Pro version only)
sizetofit The control resizes itself to match the text size and a WM_SIZETOFIT message is sent to the parent window. The control height is adjusted for multi-line controls and the width is adjusted for single line controls. The control size can grow but not shrink. This attribute cannot be used with group boxes.
resource="..." The control text is loaded from a TEXT resource of the given name. Obtaining the control text from a TEXT resource bypasses the 255-character length limitation. Numeric resource IDs cannot be used.
file="..." The control text is loaded from a file of the given name. Obtaining the control text from a file bypasses the 255-character length limitation.
icon="..." The control has a small (16x16) icon resource of the given name. Numeric resource IDs cannot be used.
smallicon="..." The control has a small (16x16) icon resource of the given name. Numeric resource IDs cannot be used.
largeicon="..." The control has a large (32x32) icon resource of the given name. Numeric resource IDs cannot be used.
bitmap="..." The control has a bitmap resource of the given name. Numeric resource IDs cannot be used.
Example: <HTML bitmap="graphic.bmp">This text contains HTML and a bitmap.</HTML>

<H1>, <H2>, <H3>, <H4>

Usage: Defines a text heading. <H1> is 8 points larger than the default font, <H2> is 6 points larger, <H3> is 4 points larger, and <H4> is 2 points larger. All headings are bold.
Attributes: align="..." The text alignment (left, center, right).
color="..." The text color (in RGB hex).
Example: <HTML><H4 align="center" color="#0000ff">This heading is blue and centered.</H4></HTML>

<P>

Usage: Defines a new paragraph.
Attributes: align="..." The text alignment (left, center, right).
color="..." The text color (in RGB hex).
Example: <HTML><P align="right" color="#ff0000">This paragraph is red and right-aligned.</P></HTML>

<BR>

Usage: Forces a line break.
Example: <HTML>This text has<BR>a line break.</HTML>

<B>

Usage: Makes text bold.
Example: <HTML>This is <B>bold</B> HTML text.</HTML>

<I>

Usage: Makes text italic.
Example: <HTML>This is <I>italic</I> HTML text.</HTML>

<CODE>

Usage: Defines code text, which is fixed-pitch Courier.
Example: <HTML>This is <CODE>code</CODE> HTML text.</HTML>

<BIG>

Usage: Makes text large, specifically 2 points larger than the default font.
Example: <HTML>This is <BIG>big</BIG> HTML text.</HTML>

<SMALL>

Usage: Makes text small, specifically 2 points smaller than the default font.
Example: <HTML>This is <SMALL>small</SMALL> HTML text.</HTML>

Copyright ⌐ 1999, Windmill Point Software. All Rights Reserved.
Last Updated May 19, 1999